﻿    
    <!--<If:Logon>-->
    <div>您是想要退出吗？如果想要重新登录或切换到其他帐号。请先<a href='{RootUrl}/_Ajax/Blog.aspx?Op=LogoutUser'>退出</a>当前帐号！</div>
    <!--</If:Logon>-->
    
    <!--<IfNot:Logon>-->
    <form id="FrmLogonUser" method="post" action="{RootUrl}/_Ajax/Blog.aspx?op=LogonUser">
    <h1>登录</h1>
    <div>
        ID:<input type="text" name="Id" />
        Password:<input type="password" name="Password" />
        <input type="submit" value="登录" />
    </div>
    </form>
    
    <p><a href="Register.aspx">注册</a></p>
    <script type="text/javascript"> 
        $("#FrmLogonUser").ajaxSubmit( function(dat){
            
            if( dat.success ){
                location.href = '{ToUrl}';
            }
            else if( dat.failure ){
                alert(dat.error||"");
            }
            else{
                alert("Why");
            }
            return false;
        } );
    </script>
    <!--</IfNot:Logon>-->
